import http from "@/libs/http";
class FormFieldServer {
  async all(param) {
    let res = await http.get("/sys_form_field/all", param);
    return res;
  }

  async page(row) {
    let res = await http.post("/sys_form_field/page", row);
    return res;
  }

  async add(row) {
    let res = await http.post("/sys_form_field/add", row);
    return res;
  }

  async edit(row) {
    let res = await http.post("/sys_form_field/edit", row);
    return res;
  }

  async del(row) {
    let res = await http.post("/sys_form_field/del", row);
    return res;
  }
}

const formFieldServer = new FormFieldServer();
export default formFieldServer;
